package com.zhudi.develop_demo_as.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;

import com.zhudi.develop_demo_as.utils.NetUtils;

public class NetReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		String action = intent.getAction();
		if (ConnectivityManager.CONNECTIVITY_ACTION.equals(action)) {
			int netType = NetUtils.getConnectedType(context);
			//TrafficUtil.getAppTrafficAndSave(netType);
		}
	}
	
}
